#ifndef _NTPEVENTARGS_HPP_
#define _NTPEVENTARGS_HPP_

#include "jhdefs.hpp"
#include "net/NTPPacket.hpp"
#include "net/SocketAddress.hpp"
#include <string>

NET_NAMESPACE_BEGIN

class CNTPEventArgs
{
public:
	CNTPEventArgs(const CSocketAddress& address);
	virtual ~CNTPEventArgs();

	std::string hostName() const;
	std::string hostAddress() const;

	const CNTPPacket &packet();

private:
	CNTPEventArgs();

	void setPacket(CNTPPacket &packet);

	CSocketAddress m_address;
	CNTPPacket m_packet;

	friend class CNTPClient;
};


NET_NAMESPACE_END

#endif
